app.filter("getEmunName", function(){
    return function(obj, value){
        var name;
        var key;
        for(key in obj){
            if(obj[key] == value){
                name = key;
                break;
            }
        }
        return name;
    }
});
/**
 * 时间格式化指令
 */
app.filter("dateFormatFilter", function(){
    var moment = moment || window.moment;
    if(moment){
        return function(obj, FormatString){
            console.log(FormatString, moment(obj).format(FormatString));
            return moment(obj).format(FormatString);
        }
    }
    else {
        console.log("还未加载 moment 组件");
        return "";
    }
});